led.bin: led.o
	arm-eabi-ld -Ttext 0x0 -o led.elf $^
	arm-eabi-objcopy -O binary led.elf $@
	arm-eabi-objdump -S led.elf > led.dis

%.o: %.S
	arm-eabi-gcc -c $<
%.o: %.c
	arm-eabi-gcc -c $<

clean:
	-rm -rf *.o *.elf *.bin *.dis
